Skip to content

Hub dataset hosts, model FILE= and fragment advice - #653

Merged
bact merged 4 commits into
mainfrom
hub-dataset-host-messages
Dec 3, 2026
Merged

bact merged 4 commits into
mainfrom
hub-dataset-host-messages

Conversation

@bact

@bact bact commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Three fixes from the 0.25.2 combined review (#650/#647 follow-ups).

  • A card dataset page on any Hub host (hf.co, www., any case) is located and folds with its bare id; dataset_merge no longer flags the two spellings. New core.hub_areas.is_hub_host.
  • Every warning of one run names a model file alike: text-unsafe used an already surrogate-escaped path (AiModelFormatInfo.logged_path).
  • field-not-recordable/fragment CLI advice names loom model --enrich, which records it (loom enrich --enrich does not).

No CHANGELOG entry (unreleased behaviour).


Generated by Claude Code

- hub_dataset_page() accepts every Hub host (hf.co, www., any case)
  through a new public hub_areas.is_hub_host(), so a dataset page on
  hf.co and the same bare id fold into one dataset, and dataset_merge no
  longer flags the two spellings as a conflict.
- A model file's warnings keep the path as read (logged_path, set before
  lone surrogates are written as text), so the assembly-stage
  text-unsafe line gives the same FILE= as the reader's lines.
- The CLI twin of field-not-recordable/fragment names
  `loom model --enrich`, which records the location; `loom enrich
  --enrich` does not. Message reference and skill quotes regenerated.

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact bact added the test-all-os Use this to trigger full tests on all platforms label Dec 3, 2026 — with Claude
@codecov-commenter

codecov-commenter commented Dec 3, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.98%. Comparing base (2140949) to head (e1c2414).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #653   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         545      545           
  Lines       35697    35708   +11     
  Branches     5028     5028           
=======================================
+ Hits        35690    35701   +11     
  Misses          4        4           
  Partials        3        3           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

bact added 3 commits December 3, 2026 14:05
- HUB_HOST_PATTERN carries inline ASCII and case-insensitive flags, and
  every Hub URL regex uses HUB_URL_FLAGS (IGNORECASE | ASCII), so
  U+0131/U+0130 no longer match "i" and U+017F no longer matches "s":
  huggıngface.co is no Hub host for dataset pages, model URLs, Git
  areas or dataset_merge.
- git_url uses is_hub_host for its host checks; only the .search keeps
  a regex built from the shared pattern.
- scrub() replaces every path spelling, the written FILE= value first,
  in one pass, so a reader's already-quoted FILE= is not quoted again
  in a relayed dataset-conflict line.
- Docs: ASCII-case host wording; rewrap an over-long line.

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact
bact merged commit fb78ae0 into main Dec 3, 2026
25 checks passed
@bact bact added the bug Something isn't working label Dec 3, 2026
@bact
bact deleted the hub-dataset-host-messages branch December 3, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working test-all-os Use this to trigger full tests on all platforms

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants